package com.zerous.staria;
import com.zerous.framework.*;
import android.os.*;

public class Util
{
	public static void drawPixel(int x, int y)
	{
		Zex.graphics.drawRect(x, y, Zex.Const.px, Zex.Const.px, 0);
	}
	
	public static void toast(Game game, String msg)
	{
		sendCommand(game, "toast", msg);
	}
	public static String editText(Game game)
	{
		sendCommand(game, "text", "getString");
		return game.getStrBuff();
	}
	
	public static void sendCommand(Game game, String p1, String p2)
	{
		Message m = game.getGameHandler().obtainMessage();
		Bundle b = new Bundle();
		b.putString(p1, p2);
		m.setData(b);
		game.getGameHandler().sendMessage(m);
	}
	
	
}
